package com.six.firstpage.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.entity.Banner;

import java.util.List;

/**
* @author ZZH
* @description 针对表【tb_banner(首页banner表)】的数据库操作Service
* @createDate 2023-02-27 10:21:18
*/
public interface BannerService extends IService<Banner> {

    //用户前台查询所有的轮播图
    List<Banner> getAllBanner();

    //查询轮播图
    Page<Banner> getBannerByTitle(String title,Integer status,Integer current,Integer pageSize);

    //添加轮播图
    Integer addBanner(Banner banner);

    //修改轮播图
    Integer updateBanner(Banner banner);

    //逻辑删除轮播图
    Integer delBanner(Integer id);
}
